package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 积分明细表
 * </p>
 *
 * @author tjy
 * @since 2021-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="HsmwPointsDetails对象", description="积分明细表")
public class HsmwPointsDetails extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "每日签到，实名认证")
    private String type;

    @ApiModelProperty(value = "类型对应积分")
    private BigDecimal typeIntegral;

    @ApiModelProperty("司机ID")
    private String driverId;


    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String statisticsTime;

}
